const express = require("express");
const {scoreList} = require("../data/index.json");
const app = express();
app.use(express.static(__dirname));
app.get("/home",(req,res)=>{
	res.json(scoreList);
})
app.get("/info",(req,res)=>{
	res.send(scoreList.map(item=>(`
		<div>
			<h3>${item.userName}</h3>
			<hr/>
		</div>
	`)).join(""))
})
app.listen(80,()=>{
	console.log("success");
})